package com.party.domain;

import java.util.Date;
import java.util.List;

public class User 
{
	private int id;
	private int code;
	private int integral;
	private String Phone;
	private String email;
	private String password;
	private String name;
	private String state;
	//private String role;
	private Date time;
	private String icon;
	private List<Role> roles;
	
	public User(){
		super();
	}
	/**

	 * 这是个必须的方法

	 * @param user

	 */
	public User(User user){
		this.id = user.getId();
		this.code = user.getCode();
		this.integral = user.getIntegral();
		this.Phone = user.getPhone();
		this.email = user.getEmail();
		this.password = user.getPassword();
		this.name = user.getName();
		this.state = user.getState();
		//this.role = user.getRole();
		this.time = user.getTime();
		this.icon = user.getIcon();
		this.roles = user.getRoles();
	}
	
	public String getIcon() {
		return icon;
	}
	public void setIcon(String icon) {
		this.icon = icon;
	}
	public List<Role> getRoles() {
		return roles;
	}
	public void setRoles(List<Role> roles) {
		this.roles = roles;
	}
	public String getPhone() {
		return Phone;
	}
	public void setPhone(String phone) {
		Phone = phone;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	public int getIntegral() {
		return integral;
	}
	public void setIntegral(int integral) {
		this.integral = integral;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}

	
	
}